From 58c61806fdc0a378f5d357066243b69e2cd3e066 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 10 Jul 2014 11:49:12 -0700 Subject: [PATCH] Add -u to `cargo test` --- src/bin/cargo-test.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/cargo-test.rs b/src/bin/cargo-test.rs index 2115612f1..1967c59fd 100644 --- a/src/bin/cargo-test.rs +++ b/src/bin/cargo-test.rs @@ -22,11 +22,12 @@ use cargo::util::important_paths::find_project_manifest; struct Options { manifest_path: Option, jobs: Option, + update: bool, rest: Vec, } hammer_config!(Options "Run the package's test suite", |c| { - c.short("jobs", 'j') + c.short("jobs", 'j').short("update", 'u') }) fn main() { @@ -45,7 +46,7 @@ fn execute(options: Options, shell: &mut MultiShell) -> CliResult> { }; let compile_opts = ops::CompileOptions { - update: false, + update: options.update, env: "test", shell: shell, jobs: options.jobs -- 2.30.2